package com.pan.structual.bridge.graphics.impl;

import com.pan.structual.bridge.graphics.Shape;

import java.awt.*;
import java.awt.image.BufferedImage;

public class Circle extends Shape {
    private Graphics graphics;
    private BufferedImage circle;{

    }

    @Override
    public BufferedImage drawShape(){
        circle = new BufferedImage(200,200,BufferedImage.TYPE_INT_RGB);
        graphics = circle.getGraphics();
        graphics.setColor(myColor.getColor());
        graphics.fillOval(50,50,100,100);
        return circle;
    }

}
